package com.neusoft.weekreport.component.entities;

import java.util.ArrayList;
import java.util.List;

public class DcWeekExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DcWeekExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andYearIsNull() {
            addCriterion("year is null");
            return (Criteria) this;
        }

        public Criteria andYearIsNotNull() {
            addCriterion("year is not null");
            return (Criteria) this;
        }

        public Criteria andYearEqualTo(String value) {
            addCriterion("year =", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearNotEqualTo(String value) {
            addCriterion("year <>", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearGreaterThan(String value) {
            addCriterion("year >", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearGreaterThanOrEqualTo(String value) {
            addCriterion("year >=", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearLessThan(String value) {
            addCriterion("year <", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearLessThanOrEqualTo(String value) {
            addCriterion("year <=", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearLike(String value) {
            addCriterion("year like", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearNotLike(String value) {
            addCriterion("year not like", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearIn(List<String> values) {
            addCriterion("year in", values, "year");
            return (Criteria) this;
        }

        public Criteria andYearNotIn(List<String> values) {
            addCriterion("year not in", values, "year");
            return (Criteria) this;
        }

        public Criteria andYearBetween(String value1, String value2) {
            addCriterion("year between", value1, value2, "year");
            return (Criteria) this;
        }

        public Criteria andYearNotBetween(String value1, String value2) {
            addCriterion("year not between", value1, value2, "year");
            return (Criteria) this;
        }

        public Criteria andYearWeekIsNull() {
            addCriterion("year_week is null");
            return (Criteria) this;
        }

        public Criteria andYearWeekIsNotNull() {
            addCriterion("year_week is not null");
            return (Criteria) this;
        }

        public Criteria andYearWeekEqualTo(String value) {
            addCriterion("year_week =", value, "yearWeek");
            return (Criteria) this;
        }

        public Criteria andYearWeekNotEqualTo(String value) {
            addCriterion("year_week <>", value, "yearWeek");
            return (Criteria) this;
        }

        public Criteria andYearWeekGreaterThan(String value) {
            addCriterion("year_week >", value, "yearWeek");
            return (Criteria) this;
        }

        public Criteria andYearWeekGreaterThanOrEqualTo(String value) {
            addCriterion("year_week >=", value, "yearWeek");
            return (Criteria) this;
        }

        public Criteria andYearWeekLessThan(String value) {
            addCriterion("year_week <", value, "yearWeek");
            return (Criteria) this;
        }

        public Criteria andYearWeekLessThanOrEqualTo(String value) {
            addCriterion("year_week <=", value, "yearWeek");
            return (Criteria) this;
        }

        public Criteria andYearWeekLike(String value) {
            addCriterion("year_week like", value, "yearWeek");
            return (Criteria) this;
        }

        public Criteria andYearWeekNotLike(String value) {
            addCriterion("year_week not like", value, "yearWeek");
            return (Criteria) this;
        }

        public Criteria andYearWeekIn(List<String> values) {
            addCriterion("year_week in", values, "yearWeek");
            return (Criteria) this;
        }

        public Criteria andYearWeekNotIn(List<String> values) {
            addCriterion("year_week not in", values, "yearWeek");
            return (Criteria) this;
        }

        public Criteria andYearWeekBetween(String value1, String value2) {
            addCriterion("year_week between", value1, value2, "yearWeek");
            return (Criteria) this;
        }

        public Criteria andYearWeekNotBetween(String value1, String value2) {
            addCriterion("year_week not between", value1, value2, "yearWeek");
            return (Criteria) this;
        }

        public Criteria andMonthIsNull() {
            addCriterion("month is null");
            return (Criteria) this;
        }

        public Criteria andMonthIsNotNull() {
            addCriterion("month is not null");
            return (Criteria) this;
        }

        public Criteria andMonthEqualTo(String value) {
            addCriterion("month =", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthNotEqualTo(String value) {
            addCriterion("month <>", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthGreaterThan(String value) {
            addCriterion("month >", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthGreaterThanOrEqualTo(String value) {
            addCriterion("month >=", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthLessThan(String value) {
            addCriterion("month <", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthLessThanOrEqualTo(String value) {
            addCriterion("month <=", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthLike(String value) {
            addCriterion("month like", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthNotLike(String value) {
            addCriterion("month not like", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthIn(List<String> values) {
            addCriterion("month in", values, "month");
            return (Criteria) this;
        }

        public Criteria andMonthNotIn(List<String> values) {
            addCriterion("month not in", values, "month");
            return (Criteria) this;
        }

        public Criteria andMonthBetween(String value1, String value2) {
            addCriterion("month between", value1, value2, "month");
            return (Criteria) this;
        }

        public Criteria andMonthNotBetween(String value1, String value2) {
            addCriterion("month not between", value1, value2, "month");
            return (Criteria) this;
        }

        public Criteria andMonthWeekIsNull() {
            addCriterion("month_week is null");
            return (Criteria) this;
        }

        public Criteria andMonthWeekIsNotNull() {
            addCriterion("month_week is not null");
            return (Criteria) this;
        }

        public Criteria andMonthWeekEqualTo(String value) {
            addCriterion("month_week =", value, "monthWeek");
            return (Criteria) this;
        }

        public Criteria andMonthWeekNotEqualTo(String value) {
            addCriterion("month_week <>", value, "monthWeek");
            return (Criteria) this;
        }

        public Criteria andMonthWeekGreaterThan(String value) {
            addCriterion("month_week >", value, "monthWeek");
            return (Criteria) this;
        }

        public Criteria andMonthWeekGreaterThanOrEqualTo(String value) {
            addCriterion("month_week >=", value, "monthWeek");
            return (Criteria) this;
        }

        public Criteria andMonthWeekLessThan(String value) {
            addCriterion("month_week <", value, "monthWeek");
            return (Criteria) this;
        }

        public Criteria andMonthWeekLessThanOrEqualTo(String value) {
            addCriterion("month_week <=", value, "monthWeek");
            return (Criteria) this;
        }

        public Criteria andMonthWeekLike(String value) {
            addCriterion("month_week like", value, "monthWeek");
            return (Criteria) this;
        }

        public Criteria andMonthWeekNotLike(String value) {
            addCriterion("month_week not like", value, "monthWeek");
            return (Criteria) this;
        }

        public Criteria andMonthWeekIn(List<String> values) {
            addCriterion("month_week in", values, "monthWeek");
            return (Criteria) this;
        }

        public Criteria andMonthWeekNotIn(List<String> values) {
            addCriterion("month_week not in", values, "monthWeek");
            return (Criteria) this;
        }

        public Criteria andMonthWeekBetween(String value1, String value2) {
            addCriterion("month_week between", value1, value2, "monthWeek");
            return (Criteria) this;
        }

        public Criteria andMonthWeekNotBetween(String value1, String value2) {
            addCriterion("month_week not between", value1, value2, "monthWeek");
            return (Criteria) this;
        }

        public Criteria andStartdataIsNull() {
            addCriterion("startdata is null");
            return (Criteria) this;
        }

        public Criteria andStartdataIsNotNull() {
            addCriterion("startdata is not null");
            return (Criteria) this;
        }

        public Criteria andStartdataEqualTo(String value) {
            addCriterion("startdata =", value, "startdata");
            return (Criteria) this;
        }

        public Criteria andStartdataNotEqualTo(String value) {
            addCriterion("startdata <>", value, "startdata");
            return (Criteria) this;
        }

        public Criteria andStartdataGreaterThan(String value) {
            addCriterion("startdata >", value, "startdata");
            return (Criteria) this;
        }

        public Criteria andStartdataGreaterThanOrEqualTo(String value) {
            addCriterion("startdata >=", value, "startdata");
            return (Criteria) this;
        }

        public Criteria andStartdataLessThan(String value) {
            addCriterion("startdata <", value, "startdata");
            return (Criteria) this;
        }

        public Criteria andStartdataLessThanOrEqualTo(String value) {
            addCriterion("startdata <=", value, "startdata");
            return (Criteria) this;
        }

        public Criteria andStartdataLike(String value) {
            addCriterion("startdata like", value, "startdata");
            return (Criteria) this;
        }

        public Criteria andStartdataNotLike(String value) {
            addCriterion("startdata not like", value, "startdata");
            return (Criteria) this;
        }

        public Criteria andStartdataIn(List<String> values) {
            addCriterion("startdata in", values, "startdata");
            return (Criteria) this;
        }

        public Criteria andStartdataNotIn(List<String> values) {
            addCriterion("startdata not in", values, "startdata");
            return (Criteria) this;
        }

        public Criteria andStartdataBetween(String value1, String value2) {
            addCriterion("startdata between", value1, value2, "startdata");
            return (Criteria) this;
        }

        public Criteria andStartdataNotBetween(String value1, String value2) {
            addCriterion("startdata not between", value1, value2, "startdata");
            return (Criteria) this;
        }

        public Criteria andEnddataIsNull() {
            addCriterion("enddata is null");
            return (Criteria) this;
        }

        public Criteria andEnddataIsNotNull() {
            addCriterion("enddata is not null");
            return (Criteria) this;
        }

        public Criteria andEnddataEqualTo(String value) {
            addCriterion("enddata =", value, "enddata");
            return (Criteria) this;
        }

        public Criteria andEnddataNotEqualTo(String value) {
            addCriterion("enddata <>", value, "enddata");
            return (Criteria) this;
        }

        public Criteria andEnddataGreaterThan(String value) {
            addCriterion("enddata >", value, "enddata");
            return (Criteria) this;
        }

        public Criteria andEnddataGreaterThanOrEqualTo(String value) {
            addCriterion("enddata >=", value, "enddata");
            return (Criteria) this;
        }

        public Criteria andEnddataLessThan(String value) {
            addCriterion("enddata <", value, "enddata");
            return (Criteria) this;
        }

        public Criteria andEnddataLessThanOrEqualTo(String value) {
            addCriterion("enddata <=", value, "enddata");
            return (Criteria) this;
        }

        public Criteria andEnddataLike(String value) {
            addCriterion("enddata like", value, "enddata");
            return (Criteria) this;
        }

        public Criteria andEnddataNotLike(String value) {
            addCriterion("enddata not like", value, "enddata");
            return (Criteria) this;
        }

        public Criteria andEnddataIn(List<String> values) {
            addCriterion("enddata in", values, "enddata");
            return (Criteria) this;
        }

        public Criteria andEnddataNotIn(List<String> values) {
            addCriterion("enddata not in", values, "enddata");
            return (Criteria) this;
        }

        public Criteria andEnddataBetween(String value1, String value2) {
            addCriterion("enddata between", value1, value2, "enddata");
            return (Criteria) this;
        }

        public Criteria andEnddataNotBetween(String value1, String value2) {
            addCriterion("enddata not between", value1, value2, "enddata");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}